<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width">
    <meta name="format-detection" content="telephone=yes"/>
    <title>更改登录密码</title>
    <link rel="stylesheet" href="../../css/reset.css">
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/personal.css">
    <style>

    </style>
</head>
<body>
<div class="wrapper">
    <div class="new-pas">
        <div class="pass-box">
            <input class="pass-inp"  id="password3" type="password" placeholder="请输入新登录密码">
            <input class="pass-inp"  id="password4" type="password" placeholder="请再次输入新登录密码">
        </div>
        <div class="next-b">
            <button class="next-btn1">保存</button>
        </div>
    </div>
    <div class="prompt_box hide1" id="error" >
        <span class="prompt_span" id="errmsg"></span>
    </div>
</div>
<script src="../../js/jquery-2.1.4.min.js"></script>
<script src="../../js/personal.js"></script>
<!--<script src="../../js/base.js"></script>-->
<script>
    $('.next-btn1').click(function(){
        var password3=$('#password3').val();
        var password4=$('#password4').val();
        if(password3==''){
            $("#errmsg").html('新密码不能为空');
            $("#error").show();
            errorHide();
            return
        }
        if(password4==''){
            $("#errmsg").html('新密码不能为空');
            $("#error").show();
            errorHide();
            return
        }
        if(password3!=password4){
            $("#errmsg").html('两次密码不一致');
            $("#error").show();
            errorHide();
            return
        }else {
            window.location.href='../Personal/set.html';
        }
    });
</script>
</body>
</html>